package cn.com.picc.base;

import com.iflytek.ai.platform.api.sdk.asr.client.IatApiClient;
import com.iflytek.ai.platform.api.sdk.common.client.WsApiClient;
import com.iflytek.ai.platform.api.sdk.common.entity.AppCredential;

/**
 * @author 曹晟
 * @version v1.00.00
 * @className BaseClient
 * @description 人工智能中台基类客户端
 * @date 2025/03/28
 **/
public class BaseClient {

    protected WsApiClient client;

    public BaseClient(String url,
                     String appId,
                     String abilityId,
                     String secretId,
                     String secretKey) {
        // 应用凭证
        AppCredential credential = new AppCredential(secretId, secretKey, appId);
        // 客户端
        IatApiClient client = new IatApiClient(credential, abilityId, url);
        this.client = client;
    }
}